package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Setter
@Getter
public class CustomerTransfer {
    private Long id;
    private Customer customer;//用户
    private Employee operator;//当前操作员
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date operateTime;//操作时间
    private Employee oldSeller;//旧销售
    private Employee newSeller;//新销售
    private String reason;

    public String getJson(){
        Map<String,Object> map = new HashMap<>();
        return JSON.toJSONString(map);
    }
}